package com.jy.rhin.infra.feign;

import com.jy.framework.base.entity.Result;
import com.jy.rhin.domain.notification.topic.entity.TopicDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;

/**
 * @Description: 主题配置信息获取feign
 * @Author: dhl
 * @Date: 2022/8/24
 */
@FeignClient(name = "QueryFeign", url = "EMPTY")
public interface QueryTopicConfigurationParametersFeign {

    /**
     * 动态url获取主题配置参数
     * @param uri
     * @param topicExp
     * @return
     */
    @GetMapping
    Result<TopicDO> queryConfigurationParameters(@RequestParam("uri") URI uri, @RequestParam("topicExp") String topicExp);
}
